<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<style type="text/css">
		body{
			background-image:url(static/img/bg.png);
		}
	</style>
</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand"href="">Kaishengit  PMS</a>
			</div>
		
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="span3" style="margin-top:60px">
				<ul class="nav nav-list">
				  <li class="nav-header"style="font-size:14px">${sessionScope.userProject.project.name }</li>
				  <li class="divider"></li>
				  <li><a href="project.jspx"><i class="icon-home"></i>最新动态</a></li>
				  <li>
					<a href="goal.jspx"><i class="icon-flag"></i>目标</a>
				  </li>
				  <li><a href="document.jspx"><i class="icon-folder-open"></i>资料库</a></li>
				  <li class="active"><a href="files.jspx"><i class="icon-white icon-file"></i>文件共享</a></li>
				 <li><a href="contact.jspx"><i class="icon-user"></i>联系人</a></li>
				 <li><a href="idea.jspx"><i class="icon-fire"></i>想法</a></li>
				 <li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
				 <li><a href="set.jspx"><i class="icon-cog"></i>项目设置</a></li>
				</ul>			
			</div>
			<div class="span9"style="margin-top:60px">
				<a href="file.jspx?m=add" class="btn btn-primary" style="float:right"><i class="icon-white icon-share"></i>上传文件</a>
				<div class="clearfix"></div>
				<c:if test="${empty fileList }">该文件夹还是空的，赶快上传文件分享吧！</c:if>
				<ul class="breadcrumb" style="margin-top:15px">
					<li>
						<a href="files.jspx"><i class="icon-th"></i>文件共享</a>&gt;<i class="icon-folder-open"></i>${files.name }
					</li>
					
				</ul>
				<table class="table table-striped">
					<thead>
						<tr>
							<th></th>
							<th>名称</th>
							<th>大小</th>
							<th>创建人</th>
							<th></th>
							<th></th>
						</tr>
					</thead>
					<tbody>
						
						
						<c:forEach items="${fileList }" var="file">
							<tr>
								<td><img src="static/img/file.png" alt="" /></td>
								<td><a href="file.jspx?m=download&&filename=${file.filename }"> ${file.name }</a></td>
								<td>${file.filesize }</td>
								<td>${file.user.name }</td>
								<td><a href="file.jspx?m=del&&filename=${file.filename }" class="link-black" title="删除该文件"><i class="icon-trash"></i></a></td>
								<td><a href="file.jspx?m=download&&filename=${file.filename }" class="link-black" title="下载该文件"><i class="icon-download-alt"></i></a></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
				<a href="files.jspx">←返回</a>
			</div>
		</div>
		
	</div>
</body>
</html>